<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 
        1. 引入 需要的依赖库
     -->
     <script src="https://cn.vuejs.org/js/vue.js"></script> 
     <!--  <script src="https://cdn.jsdelivr.net/npm/vue@2.6.11"></script> -->
     <!-- 本地 依赖库
     <script src="/vue.min.js"></script> -->
</head>
<body>
    <div id="live">
       <!--  <ul>
            <li>{{words[0].text}}</li>
            <li>{{words[1].text}}</li>
            <li>{{words[2].text}}</li>
        </ul> -->
        <ul>
            <li v-for="item,index in words" v-bind:key="index">
                {{index}}:{{item.text}}
            </li>
        </ul>
    </div>
</body>
<script>
    //创建一个 Vue 实例
    let vm = new Vue({
        el:"#live",
        data:{
            words:[
                {text:"努力的意义就是,"},
                {text:"以后的日子里，放眼望去，"},
                {text:"全部是自己喜欢的人和事。"}
            ]
        }
    })
</script>
</html>